home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sources
/
libxpm
/
libxpm34.gz
/
libxpm34
/
xpm-3.4
/
lib
/
Imakefile.dll.cross
< prev
next >
Wrap
Text File
|
1994-03-23
|
2KB
|
54 lines
XCOMM
XCOMM XPM Imakefile.dll for Linux - Mitch (m.dsouza@mrc-apu.cam.ac.uk)
XCOMM
#undef LibraryObjectRule
#define LibraryObjectRule() @@\
@@\
CC=gcc-linux @@\
JUMP_LIB=libXpm @@\
DLL_VERSION=$(SOXPMLIBREV) @@\
GCC_LIB=`$(CC) --print` @@\
LOAD_ADDR=0x60700000 @@\
DLL_TOOLS_DIR=$(LBINS)../dll/bin @@\
JUMP_AS=$(LBINS)../dll/jump/as @@\
JUMP_DIR=./jump @@\
AS=l-as @@\
AR=l-ar @@\
RANLIB=l-ranlib @@\
STRIP=l-strip @@\
ARFLAGS=cr @@\
export JUMP_DIR JUMP_LIB @@\
@@\
all:: $(JUMP_LIB).a $(JUMP_DIR)/$(JUMP_LIB).a @@\
@@\
.c.o: @@\
_NormalObjCompile(-S) @@\
@$(JUMP_AS) -o $(JUMP_DIR)/$*.o $*.s 2>/dev/null @@\
@$(AS) -o $*.o $*.s @@\
@$(RM) $*.s @@\
@@\
$(JUMP_LIB).so.$(SOXPMLIBREV): $(JUMP_DIR)/$(JUMP_LIB).a @@\
$(RANLIB) $< @@\
$(DLL_TOOLS_DIR)/mkimage -f -l $(JUMP_LIB) \ @@\
-v $(SOXPMLIBREV) -a $(LOAD_ADDR) \ @@\
-j 0x4000 -g 4096 $(JUMP_DIR)/$(JUMP_LIB).a \ @@\
-- -L/usr/X386/lib -lX11 $(GCC_LIB) -lc -dll-verbose @@\
$(DLL_TOOLS_DIR)/mkstubs -f -l $(JUMP_LIB) \ @@\
-v $(SOXPMLIBREV) -a $(LOAD_ADDR) \ @@\
-j 0x4000 -g 4096 $(JUMP_LIB) @@\
$(DLL_TOOLS_DIR)/verify-shlib \ @@\
-l $(JUMP_LIB).so.$(SOXPMLIBREV) \ @@\
$(JUMP_LIB).sa @@\
-$(DLL_TOOLS_DIR)/libinfo $(JUMP_LIB).sa @@\
$(STRIP) $(JUMP_LIB).so.$(SOXPMLIBREV) @@\
@@\
@@\
$(JUMP_LIB).a: $(JUMP_LIB).a($(OBJS)) \ @@\
$(JUMP_DIR)/$(JUMP_LIB).a($(OBJS:%.o=jump/%.o)) \ @@\
$(JUMP_LIB).so.$(SOXPMLIBREV) @@\
@@\
clean:: @@\
$(RM) lib* verify.out; cd jump; $(RM) *.[soa]